﻿using System;
using System.Collections.Generic;
using System.Text;
using VSAddinLibrary.Controllers;

namespace VSAddinLibrary.Utils
{
  public static class VSCommandManager
  {
    static Dictionary<string, IVSCommand> _map = new Dictionary<string, IVSCommand>();

    public static void AddCommand(string commandName, IVSCommand vsCommand)
    {
      _map.Add(vsCommand.Command.Name, vsCommand);
    }

    public static IVSCommand GetCommandByName(string commandName)
    {
      return _map[commandName];
    }
  }
}
